package com.xinqi.modules.user.auth.form;

import com.xinqi.common.core.constant.UserConstants;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * 用户注册对象
 *
 * @author dgyu
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class RegisterBody extends LoginBody {

    private String userType;

    /*手机号*/
    @NotBlank(message = "{user.phonenumber.not.blank}")
    @Length(min = UserConstants.PHONENUM_MIN_LENGTH, message = "{user.phonenumber.length.valid}")
    private String  mobile;

    /*验证码*/
    @NotBlank(message = "{sms.code.not.blank}")
    private String  smsCode;

}
